package com.hh.eduservice.service.impl;

import com.hh.eduservice.entity.EduVideo;
import com.hh.eduservice.mapper.EduVideoMapper;
import com.hh.eduservice.service.EduVideoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 课程视频 服务实现类
 * </p>
 *
 * @author huhuan
 * @since 2021-10-20
 */
@Service
public class EduVideoServiceImpl extends ServiceImpl<EduVideoMapper, EduVideo> implements EduVideoService {
    @Autowired
    private EduVideoMapper eduVideoMapper;
    @Override
    public void addVideo(EduVideo eduVideo) {
        eduVideoMapper.insert(eduVideo);
    }

    @Override
    public EduVideo getEduVideoById(String videoId) {
        return eduVideoMapper.selectById(videoId);
    }
}
